package demo1;
//抽象类
abstract class Shape{
    public int a;
    public void init(){
        System.out.println("你好");
    }
    public abstract void draw();
}

abstract class Type extends Shape{
    public abstract void setBounds();
}

class rect extends Type{
    @Override
    public void draw() {
        System.out.println("a");
    }

    @Override
    public void setBounds() {
        System.out.println("b");
    }
}

class Circle extends Shape{
    @Override
    public void draw(){
        System.out.println("⚪");
    }
}

public class Test {
    public static void main(String[] args) {
        Shape shape = new Circle();
        shape.draw();
    }
}
